﻿:root {
    --vditor-toolbar-height: 70px;
}

.vditor {
    border: none;
}

.vditor-toolbar {
    background: var(--m-theme-surface) !important;
    padding-left: 0px !important;
    border: none;
}

    .vditor-toolbar .vditor-toolbar__item {
        padding: 0px 8px !important;
    }

.theme--dark .vditor-reset {
    color: #fff;
}

.vditor-reset {
    background-color: var(--m-theme-surface) !important;
    border-radius: 8px;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

    .vditor-reset iframe {
        width: 100%;
        aspect-ratio: 2/1;
        border-radius: 8px;
    }

    .vditor-reset video {
        border-radius: 8px;
        max-height: unset;
    }

    .vditor-reset audio {
        border-radius: 8px;
    }

    .vditor-reset img {
        border-radius: 8px;
    }

@media screen and (min-width:600px) {
    .vditor-toolbar {
        margin-left: -10px;
    }

    .vditor-reset video {
        max-height: 55vh;
    }

    .vditor-reset img {
        max-height: 55vh;
    }
}

.vditor-panel--arrow::before {
    filter: drop-shadow(0.1px -0.1px 1px rgba(0, 0, 0, .1));
}

@media screen and (max-width:600px) {
    .vditor-toolbar {
        max-height: var(--vditor-toolbar-height);
        display: flex;
        flex-wrap: wrap;
        position: fixed;
        bottom: 0px;
        left: 0px;
        right: 0px;
        padding-left: 12px !important;
        border: none;
        z-index: 10;
        overflow-x: hidden;
        overflow-y: auto;
        /*box-shadow: 0 -3px 5px -3px rgba(0,0,0,.2);*/
    }

        .vditor-toolbar .vditor-toolbar__item {
            padding: 0px 8px !important;
        }

    button[data-type="headings"].vditor-tooltipped + .vditor-panel--arrow {
        position: fixed;
        bottom: var(--vditor-toolbar-height);
    }

        button[data-type="headings"].vditor-tooltipped + .vditor-panel--arrow::before {
            top: unset;
            bottom: -14px;
            transform: rotateX(180deg);
            filter: drop-shadow(0.1px 0.1px 1px rgba(0, 0, 0, .2));
        }

    .vditor-reset {
        --editor-bottom: 50px;
    }

    .vditor-toolbar-help {
        min-height: var(--vditor-toolbar-height);
    }
}
